package com.lagou.service.impl;


import com.lagou.service.HelloService;
import org.apache.dubbo.config.annotation.Service;

/**
 * @author wstcn
 */
@Service
public class HelloServiceImpl   implements HelloService {
    @Override
    public String sayHello(String name) {
        int i = (int) (Math.random() * 100);
        try {
            Thread.sleep(i);
        } catch (InterruptedException e) {
            e.printStackTrace();
        }
        return "hello1111111111111111111111:"+name;
    }
    @Override
    public String sayHello2(String name) {
        int i = (int) (Math.random() * 100);
        try {
            Thread.sleep(i);
        } catch (InterruptedException e) {
            e.printStackTrace();
        }
        return "hello2222222222222222222222:"+name;
    }
    @Override
    public String sayHello3(String name) {
        int i = (int) (Math.random() * 100);
        try {
            Thread.sleep(i);
        } catch (InterruptedException e) {
            e.printStackTrace();
        }
        return "hello333333333333333333333333:"+name;
    }
}
